
package cn.com.pusai.common.dao;

import cn.com.pusai.common.util.SearchMap;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

public interface BaseDAO
{

	public abstract Object findObjectById(Serializable serializable);

	public abstract Object findObjectById(Serializable serializable, Class class1);

	public abstract void delete(Object obj);

	public abstract void delete(Serializable serializable);

	public abstract void delete(Serializable serializable, Class class1);

	public abstract void delete(Serializable aserializable[]);

	public abstract void delete(Serializable aserializable[], Class class1);

	public abstract void update(Object obj);

	public abstract void updateObjectProperty(Serializable serializable, String s, Object obj, Class class1);

	public abstract void updateObjectProperty(Serializable aserializable[], String s, Object obj, Class class1);

	public abstract void updateObjectProperty(Serializable serializable, String as[], Object aobj[], Class class1);

	public abstract void updateObjectProperty(Serializable aserializable[], String as[], Object aobj[], Class class1);

	public abstract void create(Object obj);

	public abstract List findObjects(String s);

	public abstract List findObjects(int i, int j, String s);

	public abstract List findObjects(SearchMap searchmap);

	public abstract List findObjects(SearchMap searchmap, Class class1);

	public abstract List findObjects(int i, int j, SearchMap searchmap);

	public abstract List findObjects(int i, int j, SearchMap searchmap, Class class1);

	public abstract long getCount(SearchMap searchmap);

	public abstract long getCount(SearchMap searchmap, Class class1);

	public abstract boolean isExist(Serializable serializable, String s, String s1, Class class1);

	public abstract boolean isExistAnd(Serializable serializable, String as[], String as1[], Class class1);

	public abstract List isExistOr(Serializable serializable, String as[], String as1[], Class class1);

	public abstract long getCount(String s, Map map);

	public abstract long getCount(String s, SearchMap searchmap)
		throws Exception;

	public abstract int executeHql(String s);

	public abstract int executeSql(String s);

	public abstract List querySql(String s);
}
